﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>数据管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta content="Premium Multipurpose Admin & Dashboard Template" name="description" />
    <meta content="MyraStudio" name="author" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- App favicon -->
    <link rel="shortcut icon" href="assets/images/favicon.ico">

    <!-- App css -->
    <link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/theme.min.css" rel="stylesheet" type="text/css" />
    <link href="/assets/layui/css/layui.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/step.css" rel="stylesheet" type="text/css" />
    <link href="/assets/layui/css/transfer.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/bootstrap-table.css" rel="stylesheet" type="text/css" />
    <link href="/assets/css/bootstrap-editable.css" rel="stylesheet" type="text/css" />
    <style>
        .login-user {
            display: flex;
            color: #000;
            line-height: 30px;
        }

        .login-user input {
            height: 30px;
            border-radius: 4px;
            margin: 0px 4px;
        }

        .login-user select {
            height: 30px;
            border-radius: 4px;
            margin: 0px 4px;
            width: 20px;
        }
    </style>
</head>

<body>

    <!-- Begin page -->
    <div id="layout-wrapper">
        <div class="container-fluid" style="margin-top: 10px;">
            <!-- start page title -->
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-body">
                            <h4 class="form-header h4">数据库表配置</h4>
                            <button type="button" class="btn btn-primary waves-effect waves-light"
                                onclick=createDBtableModel()>新增</button>
                            <br></br>
                            <table id="bootstrap-table">
                            </table>
                        </div> <!-- end card body-->
                    </div> <!-- end card -->
                </div><!-- end col-->
            </div>
            <!-- end row-->

        </div> <!-- container-fluid -->

    </div>
    <!-- END layout-wrapper -->

    <!-- Add model -->
    <div id="DBtableModal" class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog"
        aria-labelledby="DBtableModalLabel" style="display: none;">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <!--模态框的头部内容-->
                <div class="modal-header">
                    <h4 class="modal-title" id="DBtableModalLabel">新增数据库表配置</h4>
                </div>
                <!--模态框的主体内容-->
                <div class="layui-fluid">
                    <div class="layui-card">
                        <div class="layui-card-body" style="padding-top: 40px;">
                            <div class="layui-carousel" id="stepForm" lay-filter="stepForm" style="margin: 0 auto;">
                                <div carousel-item class="layui-form" lay-filter="DBtable">
                                    <div>
                                        <form class="layui-form"
                                            style="margin: 0 auto;max-width: 460px;padding-top: 40px;">
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">数据库表名称:</label>
                                                <div class="layui-input-block">
                                                    <input type="text" name="dbfield" placeholder="请输入数据库表名称"
                                                        lay-verify="required" class="layui-input" required />
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">最大空间容量:</label>
                                                <div class="layui-input-block  login-user">
                                                    <input type="text" name="maxsize_val" id="maxsize_val" placeholder="请输入最大空间容量"
                                                        lay-verify="required|number" class="layui-input" required />
                                                    <select id="maxsize_unit" name="maxsize_unit" lay-verify="required"
                                                        lay-filter="maxsize_unit">
                                                        <option value="GB">GB</option>
                                                        <option value="TB">TB</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">备注信息:</label>
                                                <div class="layui-input-block">
                                                    <input type="text" name="comment" placeholder="请输入备注信息"
                                                        lay-verify="required" class="layui-input" required />
                                                </div>
                                            </div>
                                            <div class="layui-form-item" style="text-align: right">
                                                <div class="layui-input-block">
                                                    <button class="layui-btn" lay-submit lay-filter="formStep">
                                                        &emsp;下一步&emsp;
                                                    </button>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                    <div>
                                        <form class="layui-form" style="margin: 0 auto">
                                            <div class="layui-form-item">
                                                <label class="layui-form-label"
                                                    style="white-space: nowrap;">协议名称:</label>
                                                <div class="layui-input-block">
                                                    <select name="dp" id="dp" lay-verify="required" 
                                                        lay-filter="xmFilter">
                                                        <option value=""></option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <div id="test1" class="demo-transfer" style=" text-align: center"></div>
                                            </div>
                                            <div class="layui-form-item" style="text-align: right">
                                                <div class="layui-input-block">
                                                    <button type="button"
                                                        class="layui-btn layui-btn-primary pre">上一步</button>
                                                    <button class="layui-btn" lay-submit lay-filter="formStep2"
                                                        lay-demoTransferActive="getData">
                                                        &emsp;确认&emsp;
                                                    </button>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                    <div>
                                        <div style="text-align: center;margin-top: 90px;">
                                            <i class="layui-icon layui-circle"
                                                style="color: white;font-size:30px;font-weight:bold;background: #52C41A;padding: 20px;line-height: 80px;">&#xe605;</i>
                                            <div style="font-size: 24px;color: #333;font-weight: 500;margin-top: 30px;">
                                                填写完成
                                            </div>
                                            <div style="text-align: center;margin-top: 50px;">
                                                <button class="layui-btn next">返回</button>
                                                <button class="layui-btn layui-btn-primary"
                                                    id="testSubmitBtn">录入</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--模态框的尾部内容-->
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div>
    <!-- END model -->

    <!-- segement model -->
    <div id="segementModal" class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog"
        aria-labelledby="segementModalLabel" style="display: none;">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <!--模态框的头部内容-->
                <div class="modal-header">
                    <h4 class="modal-title" id="segementModalLabel">表字段配置</h4>
                </div>
                <!--模态框的主体内容-->
                <div class="layui-fluid">
                    <div class="layui-card">
                        <div class="layui-card-body" style="padding-top: 40px;">
                            <div carousel-item class="layui-form" lay-filter="DBtable_modify">
                                <div>
                                    <form class="layui-form" style="margin: 0 auto">
                                        <div class="layui-form-item">
                                            <div id="test2" class="demo-transfer" style=" text-align: center"></div>
                                        </div>
                                        <div class="layui-form-item" style="text-align: right">
                                            <div class="layui-input-block">
                                                <button class="layui-btn" id="modify_button" name="modify_button"
                                                    lay-filter="modify_button" lay-demoTransferActive="getData_modify">
                                                    &emsp;确认&emsp;
                                                </button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div>
    <!-- END model -->


    <!-- Overlay-->
    <div class="menu-overlay"></div>


    <script>
        var ipm = '[[${manageIp}]]';
    </script>
    <!-- jQuery  -->
    <script src="/assets/js/jquery.min.js"></script>
    <script src="/assets/js/bootstrap.bundle.min.js"></script>
    <script src="/assets/js/metismenu.min.js"></script>
    <script src="/assets/js/waves.js"></script>
    <script src="/assets/js/simplebar.min.js"></script>
    <script src="/assets/layui/layui.js"></script>
    <script src="/assets/js/bootstrap-table.js"></script>
    <script src="/assets/js/bootstrap-table-zh-CN.js"></script>
    <script src="/assets/js/bootstrap-editable.js"></script>
    <script src="/assets/js/bootstrap-table-editable.js"></script>
    <script src="/assets/js/step.js"></script>

    <!-- Morris Js-->
    <script src="/assets/plugins/morris-js/morris.min.js"></script>
    <!-- Raphael Js-->
    <script src="/assets/plugins/raphael/raphael.min.js"></script>

    <!-- Chart Js-->
    <script src="/assets/plugins/jquery-knob/jquery.knob.min.js"></script>

    <!-- Morris Custom Js-->
    <script src="/assets/pages/database-table-config-demo.js"></script>
    <script src="/assets/pages/arrowall.js"></script>

    <!-- App js -->
    <script src="/assets/js/theme.js"></script>

</body>

</html>